﻿package mortal.game.view.platform
{
    import mortal.common.global.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class PlatformLinkController extends Controller
    {

        public function PlatformLinkController()
        {
            return;
        }// end function

        override protected function initServer() : void
        {
            Dispatcher.addEventListener(EventName.LoginGameSuccess, this.onLoginSuccess);
            return;
        }// end function

        private function onLoginSuccess(param1:Object) : void
        {
            this.checkIsShowIcon();
            return;
        }// end function

        public function checkIsShowIcon(param1 = null) : void
        {
            if (ParamsConst.instance.platformLinkUrl != "")
            {
                PlatformLinkIcon.instance.showIconByBtnName(PlatformLinkUtil.getIconResName());
            }
            return;
        }// end function

    }
}
